package com.shorturl.beans;

import java.util.Date;

public class UrlModel {

    private String url;
    private String key;
    private int userId;
    private Date addTime;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    @Override
    public String toString() {
        return "UrlModel{" +
                "url='" + url + '\'' +
                ", key='" + key + '\'' +
                ", userId=" + userId +
                ", addTime=" + addTime +
                '}';
    }
}
